<div class="Content">
	<div class="column grid_8">
		<div class="column grid_7">
			<div class="FormTitle"> <h2>Customer Management</h2> </div>
<?php  
	$this->load->helper('form');
	echo validation_errors();
	echo form_open('customer/searchCustomer');
?>
<div id="Form_content">
	<label for="customerCode">Customer Code</label>
	<input type="textbox" name="customerCode" id="customerCode" value="" />
	<input type="submit" value="Search" />
	</form>

	</div>
	</div>
<div class="column grid_7">
<div id="Form_content">	
<?php echo form_open('customer/updateCustomer'); ?>
<table id="display-list" cellpadding="2">
		<tr>
			<th>Customer code</th>
			<th>Name</th>
			<th>Email</th>
		</tr>
		<?php foreach($customers as $customer):?>
		<tr>
			<td><input type="checkbox" name="customerCode" value="<?php echo $customer->customerCode; ?>" /><?php echo $customer->customerCode; ?></th>
			<td><?php echo $customer->firstname; ?> <?php echo $customer->lastname; ?></th>
			<td><?php echo $customer->email; ?></th>
			<?php /*?><td><?php echo date('d/m/Y',$customer->dateCreated); ?></th>
			<td><?php if($customer->dateUpdated == 0){echo date('d/m/Y',$customer->dateCreated);}else{echo date('d/m/Y',$customer->dateUpdated);} ?></th>			
			<?php */?>
		</tr>
		<?php endforeach;?>
		<tr>
			<td><input type="submit" value="edit" /></td>
		</tr>
	</table>
	
	</form>
	</div>
	</div>
	</div>
</div>